<?php
$id_pegawai=$_POST['id_pegawai'];
$nama=$_POST['nama'];
$username=$_POST['username'];
$pwd=$_POST['password'];
$password=sha1($pwd);
$level=$_POST['level'];

	
	$update=dbQuery("update tbpegawai set nama_pegawai='$nama',username='$username',password='$password',level='$level' where id_pegawai='$id_pegawai'")or die(mysql_error());
		if($update){
	?>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3" class="judul">&#187 Konfirmasi Update Data Pegawai</td></tr>
	<tr><td colspan="3" class="jarak_garis"><hr color="#6d6a69"></hr></td></tr>
	<tr><td colspan="3" class="suskes" align="center">Selamat Anda Sukses Update data Pegawai</td></tr>
	<tr><td colspan="3"><div id="pagging" align="center"><a href="index_admin.php?index=manage_pegawai&cryption=<?php $random."upn".$santra.$encode; ?>">[Kembali]</a></div></td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
<?php }else{
?>
<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3" class="judul">&#187 Konfirmasi Update Data Pegawai</td></tr>
	<tr><td colspan="3" class="jarak_garis"><hr color="#6d6a69"></hr></td></tr>
	<tr><td colspan="3" class="suskes" align="center">Maaf Anda Gagal Update Data,coba ulangi verifikasi data yang anda inputkan</td></tr>
	<tr><td colspan="3"><div id="pagging" align="center"><a href="index_admin.php?index=edit_pegawai&cryption=<?php print $random."upn".$santra.$encode?>">[Kembali]</a></td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
<?php }




?>